package com.spa.application.dto.admin;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.spa.infrastructure.enums.dict.order.OrderOperStatusEnum;
import com.spa.infrastructure.enums.dict.order.OrderStatusEnum;
import lombok.Data;

import java.util.Date;

@Data
@JsonInclude
public class OrderListDTO {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long orderId;

    private String orderCode;

    private  String transactionId;

    private String serviceName;

    private String extraServiceName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date serviceTime;

    private String serviceUserName;

    private String serviceUserPhone;

    private String serviceAddress;

    private String userName;

    private String userPhone;

    private String oldMassagistName;

    private String oldMassagistPhone;

    private Boolean transferFlag;

    private String massagistName;

    private String massagistPhone;

    private String shopName;

    private Integer travelPrice;

    private Integer actualPrice;

    private OrderStatusEnum orderStatus;

    private OrderOperStatusEnum orderOperStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date cancelTime;

    private String source;

}
